
#include <STC15F2K60S2.H>
#include <intrins.h>

#include "HC138.h"

#define BUZZER_P0_PIN 6

void Buzzer_Set(unsigned char dat)
{
	HC138_SetModel(5);
	P0 = (P0 & ~(dat << BUZZER_P0_PIN)) | ((dat & 0x01) << BUZZER_P0_PIN);
	P2 &= 0x1F;
}